package com.travel.group.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`group`")
public class Group {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String route;
    private String type;
    private String publisher;
    private String phone;
    private Integer status; //1已发布未审核 2已审核
    private String groupAddress;
    private String startTime;
    private String endTime;
    @TableField(exist = false)
    private Integer number;

    @TableField(exist = false)
    private List<GroupWxuser> list;

    @TableField(exist = false)
    private List<WxUsers> wxUsersList;

}
